﻿/**
 * ...
 * @author krozalski
 */

package hapi.util;
import haxe.Resource;

class Build {

	static var stamp:String;
	static var date:Date;
	
	public static function getStamp():String {
		if (stamp == null) {
			stamp = StringTools.trim(Resource.getString("build.date")) + " " + StringTools.trim(Resource.getString("build.time"));
		}
		return stamp;
	}
	
	public static function getTime():Float {
		if (date == null) {
			date = Date.fromString(getStamp()+":00");
		}
		return date.getTime();
	}
	
	public static function getTarget() {
		return Resource.getString("build.target");
	}
}